package org.linlinjava.litemall.db.dao.divided;

import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallUserPromotOrderItem;

import java.util.List;
import java.util.Set;

/**
 * @author huangfei
 * @create 2021-12-24 16:00
 */
public interface LitemallUserPromoteOrderItemMapper {

    /**
     * 根据商品id和用户id查询订单金额
     * @param itemId
     * @param visitUserId
     * @return
     */
    LitemallUserPromotOrderItem getUserPromoteOrderItem(String itemId, String visitUserId);

    /**
     * 根据商品id和用户id查询订单金额
     * @param visitUserSet
     * @param ItemsIdSet
     * @return
     */
    List<LitemallUserPromotOrderItem> getUserPromoteOrderItemList(@Param("visitUserSet") Set<Integer> visitUserSet,
                                                            @Param("ItemsIdSet") Set<Integer> ItemsIdSet);
}
